import QtQuick 2.0
import "../../../customqml"
Rectangle{
    Loader{
        id:animLoader
        anchors.centerIn: parent
        anchors.fill: parent
    }
    NormalBtn{
        x:220
        y:100
        id:bt_1
        text: "canvas基础"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/ConvenientApi.qml"
                }
            }
        }
    }
    NormalBtn{
        x:320
        y:100
        id:bt_2
        text: "渐变"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/CanvasGradient.qml"
                }
            }
        }
    }
    NormalBtn{
        x:420
        y:100
        id:bt_3
        text: "阴影"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/CanvasShadows.qml"
                }
            }
        }
    }
    NormalBtn{
        x:520
        y:100
        id:bt_4
        text: "图片"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/CanvasImage.qml"
                }
            }
        }
    }
    NormalBtn{
        x:620
        y:100
        id:bt_5
        text: "转换"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/CanvasTransformation.qml"
                }
            }
        }
    }
    NormalBtn{
        x:620
        y:100
        id:bt_6
        text: "组合"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/CanvasComposition.qml"
                }
            }
        }
    }
    NormalBtn{
        x:720
        y:100
        id:bt_7
        text: "图像数据"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/CanvasImageData.qml"
                }
            }
        }
    }
    NormalBtn{
        x:820
        y:100
        id:bt_8
        text: "绘画"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/CanvasElementsSub/CanvasPaint.qml"
                }
            }
        }
    }
}


